import request from "@/utils/request";

// 查询客户毛利测算列表---上
export function getGrossProfitListTop(data) {
  return request({
    url: "/statisticalCenter/measurement/collect",
    method: "post",
    data,
  });
}

// 修改面单收入
export function editIncome(data) {
  return request({
    url: "/statisticalCenter/measurement/edit",
    method: "post",
    data,
  });
}

// 查询省份详情列表
export function getProvinceList(data) {
  return request({
    url: "/statisticalCenter/statement/collect",
    method: "post",
    data,
  });
}

//基础派费收费调整列表
export function getBasicList(data) {
  return request({
    url: "/statisticalCenter/charge/list",
    method: "post",
    data,
  });
}
// 基础派费收费调整列表修改
export function editBasicList(data) {
  return request({
    url: "/statisticalCenter/charge/edit",
    method: "post",
    data,
  });
}
// 基础派费新增
export function addBasic(data) {
  return request({
    url: "/statisticalCenter/charge/add",
    method: "post",
    data,
  });
}

// 中转费报价列表
export function getTransferList(data) {
  return request({
    url: "/statisticalCenter/transhipmentCharge/list",
    method: "post",
    data,
  });
}
// 中转费报价列表修改
export function editTransferList(data) {
  return request({
    url: "/statisticalCenter/transhipmentCharge/edit",
    method: "post",
    data,
  });
}
// 中转费报价新增
export function addTransfer(data) {
  return request({
    url: "/statisticalCenter/transhipmentCharge/add",
    method: "post",
    data,
  });
}

// 返利标准列表
export function getRebateList(data) {
  return request({
    url: "/statisticalCenter/standard/list",
    method: "post",
    data,
  });
}
// 返利标准列表修改
export function editRebateList(data) {
  return request({
    url: "/statisticalCenter/standard/edit",
    method: "post",
    data,
  });
}
// 返利标准新增
export function addRebate(data) {
  return request({
    url: "/statisticalCenter/standard/add",
    method: "post",
    data,
  });
}

// 客户月结账单--汇总
export function getCollectList(data) {
  return request({
    url: "/statisticalCenter/bill/collect",
    method: "post",
    data,
  });
}

// 客户月结收入--查询
export function getCustomIncome(data) {
  return request({
    url: "/statisticalCenter/income/list",
    method: "post",
    data,
  });
}

// 客户月结收入--修改
export function editCustomIncome(data) {
  return request({
    url: "/statisticalCenter/income/edit",
    method: "post",
    data,
  });
}

// 客户月结收入--新增
export function addCustomIncome(data) {
  return request({
    url: "/statisticalCenter/income/add",
    method: "post",
    data,
  });
}

// 驿站、承包区月度固定费用列表--查询
export function getFixedFeeList(data) {
  return request({
    url: "/statisticalCenter/fee/list",
    method: "post",
    data,
  });
}

// 驿站、承包区月度固定费用列表--修改
export function editFixedFeeList(data) {
  return request({
    url: "/statisticalCenter/fee/edit",
    method: "post",
    data,
  });
}

// 驿站、承包区月度固定费用列表--新增
export function addFixedFeeList(data) {
  return request({
    url: "/statisticalCenter/fee/add",
    method: "post",
    data,
  });
}

// 后勤工资表--查询
export function getBackOfficeList(data) {
  return request({
    url: "/statisticalCenter/payroll/list",
    method: "post",
    data,
  });
}

// 后勤工资表--新增
export function addBackOfficeList(data) {
  return request({
    url: "/statisticalCenter/payroll/add",
    method: "post",
    data,
  });
}

// 直营网点往来帐单--查询
export function getCurrentAccountList(data) {
  return request({
    url: "/statisticalCenter/CurrentAccount/collect",
    method: "post",
    data,
  });
}

// 承包区往来帐单--查询
export function getContractedDistrictAccountList(data) {
  return request({
    url: "/statisticalCenter/contractedAccount/collect",
    method: "post",
    data,
  });
}

// 承包区月度费用摊销表--查询
export function getExpenseAmortizationList(data) {
  return request({
    url: "/statisticalCenter/amortization/collect",
    method: "post",
    data,
  });
}

// 承包区月度费用摊销表--修改
export function editExpenseAmortizationList(data) {
  return request({
    url: "/statisticalCenter/amortization/edit",
    method: "post",
    data,
  });
}

// 承包区月度费用摊销表--新增
export function addExpenseAmortizationList(data) {
  return request({
    url: "/statisticalCenter/amortization/add",
    method: "post",
    data,
  });
}

// 总部收支汇总表--下载模板
export function exportSummary() {
  return request({
    url: "/sc/headquartersDetail/downloadTemplate",
    method: "get",
    responseType: "blob",
  });
}

// 总部收支汇总表--导入
export function importSummary(data) {
  return request({
    url: "/sc/headquartersDetail/importHeadquartersDetail",
    method: "post",
    data,
    headers: { "Content-Type": "multipart/form-data" },
  });
}

// 总部收支汇总表--查询列表
export function getSummary(data) {
  return request({
    url: "/sc/headquartersIncomeAndExpend/list",
    method: "post",
    data,
  });
}

// 总部收支汇总表--新增
export function addSummary(data) {
  return request({
    url: "/sc/headquartersKeyword/add",
    method: "post",
    data,
  });
}

// 总部收支汇总表--编辑
export function editSummary(data) {
  return request({
    url: "/sc/headquartersKeyword/edit",
    method: "post",
    data,
  });
}

// 总部收支汇总表--删除
export function removeSummary(id) {
  return request({
    url: "/sc/headquartersKeyword/remove/" + id,
    method: "get",
  });
}

// 面单充值--下载模板
export function exportInventoryTaking() {
  return request({
    url: "/statisticalCenter/sheetRechargeDetail/downloadTemplate",
    method: "get",
    responseType: "blob",
  });
}

// 面单充值--导入
export function importInventoryTaking(data) {
  return request({
    url: "/statisticalCenter/sheetRechargeDetail/importSheetRechargeDetail",
    method: "post",
    data,
    headers: { "Content-Type": "multipart/form-data" },
  });
}

// 面单充值--查询列表
export function getInventoryTaking(data) {
  return request({
    url: "/statisticalCenter/recharge/list",
    method: "post",
    data,
  });
}

// 面单充值--新增
export function addInventoryTaking(data) {
  return request({
    url: "/statisticalCenter/sheetRechargeKeyword/add",
    method: "post",
    data,
  });
}

// 面单充值--编辑
export function editInventoryTaking(data) {
  return request({
    url: "/statisticalCenter/sheetRechargeKeyword/edit",
    method: "post",
    data,
  });
}

// 面单充值--删除
export function removeInventoryTaking(id) {
  return request({
    url: "/statisticalCenter/sheetRechargeKeyword/remove/" + id,
    method: "get",
  });
}

// 银行日记收支汇总表--下载模板
export function exportBankSummary() {
  return request({
    url: "/sc/bankJournalDetail/downloadTemplate",
    method: "get",
    responseType: "blob",
  });
}

// 银行日记收支汇总表--导入
export function importBankSummary(data) {
  return request({
    url: "/sc/bankJournalDetail/importBankJournalDetail",
    method: "post",
    data,
    headers: { "Content-Type": "multipart/form-data" },
  });
}

// 银行日记收支汇总表--查询列表
export function getBankSummary(data) {
  return request({
    url: "/sc/bankJournal/list",
    method: "post",
    data,
  });
}

// 银行日记收支汇总表--新增
export function addBankSummary(data) {
  return request({
    url: "/sc/bankJournalKeyword/add",
    method: "post",
    data,
  });
}

// 银行日记收支汇总表--编辑
export function editBankSummary(data) {
  return request({
    url: "/sc/bankJournalKeyword/edit",
    method: "post",
    data,
  });
}

// 银行日记收支汇总表--删除
export function removeBankSummary(id) {
  return request({
    url: "/sc/bankJournalKeyword/remove/" + id,
    method: "get",
  });
}

// 客户账单核销表--查询
export function getCustomerBillList(data) {
  return request({
    url: "/statisticalCenter/write/list",
    method: "post",
    data,
  });
}

// 客户账单核销表--新增
export function addCustomerBillList(data) {
  return request({
    url: "/statisticalCenter/write/add",
    method: "post",
    data,
  });
}

// 客户账单核销表--修改
export function editCustomerBillList(data) {
  return request({
    url: "/statisticalCenter/write/edit",
    method: "post",
    data,
  });
}

// 固定费用摊销表--查询
export function getFixedChargeList(data) {
  return request({
    url: "/statisticalCenter/expenses/list",
    method: "post",
    data,
  });
}

// 固定费用摊销表--新增
export function addFixedChargeList(data) {
  return request({
    url: "/statisticalCenter/expenses/add",
    method: "post",
    data,
  });
}

// 固定费用摊销表--修改
export function editFixedChargeList(data) {
  return request({
    url: "/statisticalCenter/expenses/edit",
    method: "post",
    data,
  });
}

// 科目余额表--查询
export function getAccountBalanceList(data) {
  return request({
    url: "/statisticalCenter/balance/list",
    method: "post",
    data,
  });
}

// 科目余额表--新增
export function addAccountBalanceList(data) {
  return request({
    url: "/statisticalCenter/balance/add",
    method: "post",
    data,
  });
}

// 科目余额表--修改
export function editAccountBalanceList(data) {
  return request({
    url: "/statisticalCenter/balance/edit",
    method: "post",
    data,
  });
}

// 利润表--查询
export function getProfitList(data) {
  return request({
    url: "/statisticalCenter/profit/list",
    method: "post",
    data,
  });
}

// 利润表--新增
export function addProfitList(data) {
  return request({
    url: "/statisticalCenter/profit/add",
    method: "post",
    data,
  });
}

// 利润表--修改
export function editProfitList(data) {
  return request({
    url: "/statisticalCenter/profit/edit",
    method: "post",
    data,
  });
}

// 负债表--查询
export function getLiabilitiesList(data) {
  return request({
    url: "/statisticalCenter/financeLiabilities/list",
    method: "post",
    data,
  });
}

// 负债表--新增
export function addLiabilitiesList(data) {
  return request({
    url: "/statisticalCenter/financeLiabilities/add",
    method: "post",
    data,
  });
}

// 负债表--修改
export function editLiabilitiesList(data) {
  return request({
    url: "/statisticalCenter/financeLiabilities/edit",
    method: "post",
    data,
  });
}

// 面单毛利表--查询
export function getGrossMarginData(data) {
  return request({
    url: "/sc/singleMarginStatement/collect",
    method: "post",
    data,
  });
}

// 面单毛利表--修改
export function editGrossMarginData(data) {
  return request({
    url: "/sc/singleMarginStatement/update",
    method: "post",
    data,
  });
}

// 面单毛利表--导出
export function exportGrossMarginData(data) {
  return request({
    responseType: "blob",
    url: "/sc/singleMarginStatement/export",
    method: "post",
    data,
  });
}

// 进港派件毛利报表--修改
export function editDeliveryMarginData(data) {
  return request({
    url: "/sc/paiGrossProfitSheet/updateSheet",
    method: "post",
    data,
  });
}
